package com.cqd.entity;

import lombok.Data;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document(collection = "t_stus")
public class Stu {
    @Field("_id")
    private String _id;

    @Field("id")
    private Long id;

    @Field("name")
    private String name;

    @Field("code")
    private String code;

    @Field("age")
    private Integer age;

    @Field("sex")
    private String sex;
}